# Maintainer: Evangelos Foutras <evangelos@foutrelis.com

pkgname=python-stevedore
pkgver=5.0.0
pkgrel=2
pkgdesc="Manage dynamic plugins for Python applications"
arch=('any')
url="https://github.com/openstack/stevedore"
license=('Apache')
depends=('python')
makedepends=('python-pbr')
options=('!emptydirs')
source=(https://pypi.org/packages/source/s/stevedore/stevedore-$pkgver.tar.gz)
sha256sums=('2c428d2338976279e8eb2196f7a94910960d9f7ba2f41f3988511e95ca447021')

prepare() {
  cd stevedore-$pkgver
  # Remove dependency on pbr; it's not a runtime dependency
  sed -i '/pbr/d' requirements.txt
}

package() {
  cd stevedore-$pkgver
  python3 setup.py install --root="$pkgdir" -O1
}

# vim:set ts=2 sw=2 et:
